<?php /* Smarty version 2.6.26, created on 2012-09-29 15:50:19
         compiled from index.html */ ?>
<?php unset($this->_sections['s1']);
$this->_sections['s1']['loop'] = is_array($_loop=$this->_tpl_vars['arr2']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['s1']['name'] = 's1';
$this->_sections['s1']['show'] = true;
$this->_sections['s1']['max'] = $this->_sections['s1']['loop'];
$this->_sections['s1']['step'] = 1;
$this->_sections['s1']['start'] = $this->_sections['s1']['step'] > 0 ? 0 : $this->_sections['s1']['loop']-1;
if ($this->_sections['s1']['show']) {
    $this->_sections['s1']['total'] = $this->_sections['s1']['loop'];
    if ($this->_sections['s1']['total'] == 0)
        $this->_sections['s1']['show'] = false;
} else
    $this->_sections['s1']['total'] = 0;
if ($this->_sections['s1']['show']):

            for ($this->_sections['s1']['index'] = $this->_sections['s1']['start'], $this->_sections['s1']['iteration'] = 1;
                 $this->_sections['s1']['iteration'] <= $this->_sections['s1']['total'];
                 $this->_sections['s1']['index'] += $this->_sections['s1']['step'], $this->_sections['s1']['iteration']++):
$this->_sections['s1']['rownum'] = $this->_sections['s1']['iteration'];
$this->_sections['s1']['index_prev'] = $this->_sections['s1']['index'] - $this->_sections['s1']['step'];
$this->_sections['s1']['index_next'] = $this->_sections['s1']['index'] + $this->_sections['s1']['step'];
$this->_sections['s1']['first']      = ($this->_sections['s1']['iteration'] == 1);
$this->_sections['s1']['last']       = ($this->_sections['s1']['iteration'] == $this->_sections['s1']['total']);
?>
	<li><?php echo $this->_tpl_vars['arr2'][$this->_sections['s1']['index']]['title']; ?>
</li>
	<?php if ($this->_sections['s1']['last']): ?>
		<li>结束了。。。。。</li>
	<?php endif; ?>
<?php endfor; endif; ?>
共有记录：<?php echo $this->_sections['s1']['total']; ?>
<br/>


<hr/>
<?php $_from = ($this->_tpl_vars['arr2']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
	<?php if ((1 & $this->_tpl_vars['k'])): ?>
		<li style="color:#f00;"><?php echo $this->_tpl_vars['v']['title']; ?>
</li>
	<?php else: ?>
		<li><?php echo $this->_tpl_vars['v']['title']; ?>
</li>
	<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<hr/>
<?php echo '
{$arr.qq|substrd:3}
'; ?>

<?php echo $_SESSION['role']; ?>

<?php if ($_SESSION['role'] == 1): ?>
	<h1>管理员</h1>
<?php else: ?>
	<h3>普通用户</h3>
<?php endif; ?>



















